package cbsc.cha4;

import java.io.*;
import java.util.ArrayList;

public class PracticeTester {

	public void testRead(File aFile){
		ArrayList<Integer> aList = new ArrayList <Integer>();
		Practice p = new Practice();
		aList = p.readCSVPractice(aFile);
		int i = 0;
		int count=0;
		for (int value: aList){
			i++;
			count++;
			if (i > 10){
				i = 0;
				System.out.println();
			}
			System.out.print(""+count+": "+value+"\t");		
		}
	}
	public static void main(String[] args) {
		PracticeTester tester = new PracticeTester();
		System.out.println("------ beging ------\n");
		tester.testRead(new File("results2.txt"));
		System.out.println("\n------ end ------");
		
	}

}
